package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "archive_test.go",
        "content_ext_test.go",
        "databus_test.go",
        "log_test.go",
        "service_test.go",
        "special_permit_test.go",
        "up_card_test.go",
        "up_data_test.go",
        "up_group_test.go",
        "up_info_test.go",
        "up_switch_test.go",
        "up_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/service/main/up/api/v1:go_default_library",
        "//app/service/main/up/conf:go_default_library",
        "//app/service/main/up/model:go_default_library",
        "//library/net/http/blademaster:go_default_library",
        "//library/queue/databus:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "archive.go",
        "content_ext.go",
        "databus.go",
        "log.go",
        "service.go",
        "special_permit.go",
        "up.go",
        "up_card.go",
        "up_data.go",
        "up_group.go",
        "up_info.go",
        "up_switch.go",
    ],
    importpath = "go-common/app/service/main/up/service",
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
    deps = [
        "//app/admin/main/videoup/model/archive:go_default_library",
        "//app/service/main/account/api:go_default_library",
        "//app/service/main/archive/api:go_default_library",
        "//app/service/main/up/api/v1:go_default_library",
        "//app/service/main/up/conf:go_default_library",
        "//app/service/main/up/dao:go_default_library",
        "//app/service/main/up/dao/archive:go_default_library",
        "//app/service/main/up/dao/card:go_default_library",
        "//app/service/main/up/dao/data:go_default_library",
        "//app/service/main/up/dao/global:go_default_library",
        "//app/service/main/up/dao/manager:go_default_library",
        "//app/service/main/up/dao/monitor:go_default_library",
        "//app/service/main/up/dao/up:go_default_library",
        "//app/service/main/up/model:go_default_library",
        "//app/service/main/up/model/data:go_default_library",
        "//library/conf/env:go_default_library",
        "//library/ecode:go_default_library",
        "//library/log:go_default_library",
        "//library/net/http/blademaster:go_default_library",
        "//library/net/http/blademaster/middleware/permit:go_default_library",
        "//library/net/http/blademaster/render:go_default_library",
        "//library/net/metadata:go_default_library",
        "//library/queue/databus:go_default_library",
        "//library/queue/databus/report:go_default_library",
        "//library/stat/prom:go_default_library",
        "//library/sync/errgroup:go_default_library",
        "//library/sync/pipeline/fanout:go_default_library",
        "//library/time:go_default_library",
        "//library/xstr:go_default_library",
        "//vendor/github.com/pkg/errors:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
